;;; +lsp-bridge.el --- language server client -*- lexical-binding: t -*-

;; Package-Requires: (pip3 (epc orjson sexpdata six setuptools paramiko rapidfuzz))
;; Homepage: https://github.com/manateelazycat/lsp-bridge

;;; Commentary:

;; commentary

;;; Code:

(use-package lsp-bridge
  :load-path "lazycat-bucket/lsp-bridge"
  :defer 1
  :if (file-exists-p
       (expand-file-name "lazycat-bucket/lsp-bridge/lsp-bridge.el"
                         user-emacs-directory))
  ;; ;; 自定義 StarDict 詞典
  ;; :custom
  ;; (acm-backend-search-sdcv-words-dictionary
  ;;  (expand-file-name "dicts/stardict-oxford-gb-2.4.2/oxford-gb"
  ;;                    user-emacs-directory))
  :config
  (setq lsp-bridge-enable-log nil)
  (global-set-key (kbd "C-c D") 'lsp-bridge-toggle-sdcv-helper)
  (global-lsp-bridge-mode))

;; -------- yasnippet --------
(use-package yasnippet
  :defer t
  :after lsp-bridge
  :diminish yas-minor-mode
  :config
  (use-package yasnippet-snippets
    :defer t
    :after yasnippet)
  (yas-global-mode))

(provide '+lsp-bridge)

;;; +lsp-bridge.el ends here
